Your init isn't passing enough arguments, and your add_unit isn't accepting enough arguments.. both of the files are not only outdated, but are separate version from each other..I will start over but I did originate with the beginning setup. Could you look at my init.sql real quick? I believe that is where the problem is. Thanks