database issue and mongoid error