Fix psql authentication problems; and syntax
Add missing #!
Add missing chmod for init and import scripts