fix bug about db; use os.path.getmtime