Utility class for node.js / mongo