minor SQL correction for empty value syntax using NULL