Updates database config file