fix database for postgres in production