mongoBackend "redirect" to context provideres for queryContext and updateContext operations

This PR comprises the part of issue #499 regarding mongoBackend.
What if prepareDatabase took a parameter to do the 'all entities have the same type' thingy ?