Use java lock instead database locks to synchronize storage of genre and
persons