Consolidated models

All models are now in one place, the pipeline uses the application models and all models use SQLAlchemy.

Fixes #38.
is this different from the index?