Use Flask-Classy, move upload internals out of View, store MD5 in db