Wrote database config