Updating to use postgres instead of mysql.