Updated admin code to use the new db access methods