currently have an endpoint to handle db queries using http get.