return a Mongo::DB object if no block is provided