SQL code for updating stock and base price for a frame