changed from sqlite 3 to postgres for development and production