added DataB class and routed the db calls