querying now works without adding the objects to the database