added a convience mehtod getAsDBObject to BaseDocument
cleaned up unnecessary properties in QueryImpl to make more lightweight
refactoring work