Fix database configuration for existing DB