update consolidate to treat database as groundtruth