Adding support for solr queries, integrating db content retrieval as well