Fix SQL statements that have dynamic table names to use proper syntax.
Merge pull request #100 from JackDandy/feature/FixDynamicSQLTableNames

Fix SQL statements that have dynamic table names to use proper syntax.