chat with authToken+userid instead of userSecret+dbid
added a condition. cleaning up
cleaning up