Well, sure, but you cannot take that literally. "Not use globals" recommendation is for beginner coders that tend to overuse them.
Also not that AfxGetApp is no better, it is simply a global in disguise. If you really need / want to make things independent of global issues, you have to propagate your database as reference in dependant sub-ctrls.