use "pragma: no cover" where sensible
added docstring for Database.__contains__