Fixed selecting correct table

Fixed selecting correct table when "excercise" tables are also present
Merge pull request #7 from reubn/master

Fixed selecting correct table