update database config file