Added superclass for controllers w/ database access.