Repository pattern for Ruby and MongoDB