<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def query(self, type, exclude_subclasses=False):
		''' Begin a query on the database's collection for `type`.  If `type`
			is an instance of basesting, the query will be in raw query mode
			which will not check field values or transform returned results
			into python objects.

		 .. seealso:: :class:`~ommongo.query.Query` class'''
		# This really should be adding a query operation to the
		# queue which is then forced to execute when the results are being
		# read
		if isinstance(type, basestring):
			type = FreeFormDoc(type)
		return Query(type, self, exclude_subclasses=exclude_subclasses)