Basic php Mongodb Class