Configures the db inside the class file.

Not optimal, but resolves for now the issue
where the config.xml file could not be found.