Use a reference of DBAgent, not a pointer, always.

There's no case in which dbAgent is a NULL.