Multiple DB entries in config file

Rewriting config file to allow multiple entries, as we will need to make
at least two database connections.