Introduced Proxy Model for filtering and sorting database view.
Sorting works, filtering almost.
Tidied up
Filtering works