Fixing database configuration