clean up table create/drop queries

This is more of a stylistic change, as no functional behavior differs,
however it makes diagnostics much easier and is theoretically faster
than the previous select code.