fixed sql added missing table to file