add to cart function implemented by parsing db html contents