Add conflict check for concurrent inserts