Added rewuired gems and changed database to use mongoid