Removed main method from ConfigDatabase.

Consider using tests for this kind of stuff.