ham_db_check_integrity interface changed, added flags. can now generate graph