changed database from sqlite to postgres