Update to new requests library
Add migration code to SQLAlchemy
Finish conversion to SQL