added and configured mongoid.