moved database config parameter outside class