Added db controller