Fix the sorting of the listview being changed from ascending to descending (and likewise) on every new scriptload.
Get rid of transactions in the SELECT query methods in the Database class