fixing database configuration