should++
fix db for tests
fix global leak