Fixed the serliazer to work with mongoengine ORM and also fixed for the request handling