completed the save and check function for collections in dbservers