Added a database factory and a test suite.
Has a configuration factory.