Auth from Plugin to Core, Db Query