Edit database config file