Critical bug fix for SQLDB support