#13 #22 update db layer logic + add hetrec dataset parsing logic