update the database config