Fix prob with SQL not using unique identities