working database logic, 79965 initial run, almost 20%