add subquery handler, updates to solr and mongo stores