updated database to use postgres