cleaned up some assertions
added empty database test case using `go test ./... -cover=` -- scary outcome