fixed path to db config
modified Database class to fix connection issues