database config rewrite