fix for rerunning in local db

previous code assumed database was deleted for each run left over from
testing