Fixed issue when passing dbconfig to dbconnect