added limit option to search query command