how mongoid can be used in ruby script