changed production db to pg from sqlite