Mongoid support

Use ActiveModel.find to retrieve database object instead of where() in order to support Mongoid. This should be backwards compatible with ActiveRecord.