Revert "database class and tablesorter plugin"

This reverts commit 6f6241c913b1782632194de0c5f84b5cfc02946f.