access config correctly. (bugfix, db)