updated database to postgres