Testing for NULL, and handling NULL in insert