Added Db conect in DataInput class