upgraded mongoose and libshardcache

minor changes to conform to the new mongoose API