Add automatic db_archive memcachedb in hook tick function