mongo unserialzation for entities that arent documents