     function run () {
 
       # Check if PG DB schema update required
-      go run go/src/socialapi/tests/pg-update.go #{credentials.postgres.host} #{credentials.postgres.port}
+      go run $KONFIG_PROJECTROOT/go/src/socialapi/tests/pg-update.go $KONFIG_POSTGRES_HOST $KONFIG_POSTGRES_PORT
       RESULT=$?
 
       if [ $RESULT -ne 0 ]; then

        fi
      fi

      mongo #{credentials.mongo} --eval "db.stats()" > /dev/null  # do a simple harmless command of some sort

      RESULT=$?   # returns 0 if mongo eval succeeds

      if [ $RESULT -ne 0 ]; then
          echo ""
          echo "Can't talk to mongodb at #{credentials.mongo}, is it not running? exiting."
          exit 1
      fi

      EXISTS=$(PGPASSWORD=#{credentials.postgres.password} psql -tA -h #{options.boot2dockerbox} social -U #{credentials.postgres.username} -c "Select 1 from pg_tables where tablename = 'key' AND schemaname = 'kite';")
      if [[ $EXISTS != '1' ]]; then
        echo ""
        echo "You don't have the new Kontrol Postgres. Please call ./run buildservices."

      node scripts/create-default-workspace

      # Sanitize email addresses
      node $KONFIG_PROJECTROOT/scripts/sanitize-email

      # Run all the worker daemons in KONFIG.workers
      #{("worker_daemon_"+key+"\n" for key, val of KONFIG.workers when val.supervisord).join(" ")}
