fleshing out query
querying fleshed out and tested