search action added, that uses a query to drow data from database