Optimized create_table, now only checks if table exists once.
Merge branch 'optimize-create-table'