Replaced createuser commands with psql -c commands