Mongoid configuration

Made mongoid configuration work. Successfully saved stuff.