create tables within a transaction