[task] Add DBStruct.hh and a test programme