Some of the db/table calls were reversed.
Merge pull request #65 from jcrobak/fix-mixedup-db-table

Some of the db/table calls were reversed.