changes from sqlite3 to using postgresql for all environments