Table works now, correct table is selected and outputted into the sql
file