Add load_db() and test case

more info: http://www.voidspace.org.uk/python/mock/helpers.html#mock-open