Abstract DB

This PR will continue the abstraction of DB handling that has already been introduced with `FilterHelper` (now `DataFilter`) and `SortHelper`.