remove global mocks for SettingsStore
Created by: camdencheek
This removes all references to the global mocks for SettingsStore. This touches a lot of files, mostly from propagating database.DB through the relevant call chains. CheckCurrentUserIsSiteAdmin and Current user are used in many places.
Mostly mechanical, but the interesting parts are highlighted with comments.