Abstracting away queries for creating and dropping tables