Added locking in service methods which modify db