Mongo db manager for php