Empty string queries now changed to IS NULL db queries