Update database to postgres