database update for postgres in production mode