MongoDB Data Model library writhen in PHP