Update libe/shared.js

update mongodb calls