I the short term you may use OID as your key and just hide the OID column in yourapp. You should throw a unique index on OID. And set the driver option toshow OID.