port database layer from appframework to core
fix scrutinizer issues
fix doc strings for db facade
remove unusued variable
remove unusued variable
move db into iservercontainer
remove useless import
Fix typo & add type
fix phpdoc for entities
dont update entity and dont run an update query if an entity wasnt changed at all
Add sorting to files list, trashbin and public files
Set default sort of trashbin to timestamp descending
Added unit test in files app for sort function in helper class

Added unit test for the Helper class in the files app that tests the
different sort orders.
$RUNTIME_APPTYPES is no longer used - left over from pre OC4
html input tag has no closing tag
typos, indentation and remove of unused code
Clear selection on reload (when changing sort)
reduce multiselect max-width from 400 to 200px to not take too much space
- make logger available in the container
- inject logger class into log
- adding PHPDoc comments and fixing typos
Make db connection protected