looked up mysql syntax for conditionally creating table