Allow child classes to obtain db