handle tables with no unique constraints