Added global configuration file.
Moved database settings to configuration file.