querying pretty much working