We should decouple the logic of jobs from the ORM models, so that we can run LocalTaskJob, TriggererJob, DagProcessorJob from the database.