mongoengine support for serialisers

code needs a lot of refactoring