fixing database config