Neatened up table creation

We now use failure responses to allow much simpler chaining of sql
operations to create table if it does not exist. Could be extended to
some kind of upgrade/downgrade system.