do not define mongoid module unless mongoid is available