Add load_db() and test case

This should be `logger` instead.