Race condition, handle using UNIQUE key.