added pg db
added bug
corrected Location error on jobs/new