fixed db logic to change win count throughout various tables (with tests)