[TO BE REBASED] Added support for reading NULL values in the SQL item db