simplify tests
use new string-formatting style
removed "Examples" section from Database docs
fixed example of Database.query
fixed example of entries_from_dir
added __repr__ method to caching classes