Fix database configuration