Factoid and database work, added init functions to ListenerBase and ICmdWrapper.