changed get_price to work through db