Handle primary keys per table basis, not globally