Added database controller