Race condition. But the database get filled.