Changed database from sqlite to postgres