Fix usage of the event api

Fix usage of the event api in the add comment method, it was causing an error due to the Db constructor wanting a cache object rather than the keyPrefix string.