Don't try to insert if it might violate uniqueness constraint; FIXME: add update