component cleanup
fixed some sqlalchemy-related annoyances