Avoiding InternalError by creating separate transaction when table is no...

...t yet created.