Fixes #5 NULL for unique ids causes SQL syntax warnings.