Insert logs to DB as an async task.
Acquire RWLock only when client is a master listener.
Optimize updating ChannelNicks data.

Minimize db hits as much as possible.