added key table for dealing with id assignment of new drafts. started on publication cleanup.