Draft of config handling in pyyaml.

Moved config into separate module.

Hacked input to feed Database.__init__() correctly. Hacky.