updating database config