Implemeted interface to DB from the irc bot commands