fix bug in dupe check of DB runs