Fixed table name check and optimized BAOSDuplicator