Add class dor database interaction