Avoiding InternalError by creating separate transaction when table is not yet created.