Data manipulation in IQueryable

- Changed all IEnumerable usages to IQueryable ones, so that data can be
processed by all processors and be selected from the database in one go.