write db file config