Implemented MongoDb compatability

Which is actually different than XHGui structs, oh well, thats next