Consolidated models

All models are now in one place, the pipeline uses the application models and all models use SQLAlchemy.

Fixes #38.