How to create and fill artificial primary keys (often needed for replication)