Edit db file