Check for table existence before create

Fixes bug 1271529
Merge pull request #94 from ikhudoshyn/bug/1271529

Check for table existence before create