update db file