generate db.update file automatically