Implements MongoDB interface (related to issue #5)