Update database config file