split irc2sql.cpp into smaller files