Changes database config