Category: how to handle concurrency and race conditions while using database