SQLAlchemy integration

(more type nitpicking/etc. that's leftover from things I did to get set up faster, this could be a uuid type, but not a big deal if it's inconvenient)