changed sql query to fetch only in stock products in getProducts method