Defining modes for pubtool and dreamed up workflow. Haven't yet defined SQL or the C code for implementing the modes. Made some changes to the database schema for publishing.