Creates an SqlCommandSelect query, for all objects of the same type in the database
a DataObject to create a query from