history: changing database to be more concurency friendly