Rewrite twitch.py to work with new db