finished sqlalchemy integration for privmsg