Change sqlalchemy lazy property dynamic to select
Remove unused imports