Store phergie irc events in database