Gravity Forms in Woocommerce Dynamic Population & PHP Code

I need a simple SQL Database created in Word Press and
a small number of lines of PHP coding for gravity forms.

I have gravity forms and woocommerce gravity plugin installed and I have set up the layout for this product. https://kudoprint.com.au/shop/business-cards-deluxe-410g/

I need a word press sql database table created. I have Word press CDBT Tables Management plug in installed if you want to use that.
The Fields of the sql database table should be named Product_Type, Product Size, Colour, Quantity, Price (First three are text fields – Quantity & Price are number fields).

I need a Hook on the Quantity Field that connected to code that searches the database fields to find the record where
Product type = Option value of the Product Type Drop Down and
Product size = Option value of the Product Size Drop Down and
Colour = Option value of the Colour Drop Down
The Quantity Drop down Labels are then populated with the values from the Quantity Fields and the Quantity Drop down Values are populated with the values of the price fields.

The data I will be importing into the database is from this csv file Deluxe Cards Prices

 

CSV data file.

 

Quantity menu after it is populated with data.

Regards, Graham