Cleaning up code to query mongo. Adding feature to select sample type as
a query feature.