Set table oid after writing the table to the database within imports