Fix database configuration for staging