Basic user authorization using SQLAlchemy.