Ignored sqlite databases in the tests directory
The config structure is now defined outside get_conf so that it can be modified by tests.
Added tests, and fixed bugs that were found in code and documentation via the tests.