start implementing path_h database storage, not finished yet!