revert unintentional change in MongoObjectDatabase introduced when squashing commits for the pull request