CRITICAL: fixed insert/update blob + supports null