Changed HISTMAN to be an ApAM component (and to use apam poperty to set host, port, dbName)