transforming to reproduce the non-rel version
added templates too
working but had to modify mongoengine AND mongodbforms