fix the bugs in update module, zipped database