changed back to postgres and updated db config to work on mercury in production mode