Abstract CoffeeScript class for working with MongoDB