Implement SQLAlchemy.
Update for flake8 compliance.