Fix createTables function to check if DB exists

Implement hack to make sure __storm_table__ is set.