added sql query to get product by id