fix database config files