Added db query template for search