Suppose i have build a roomAllocation system there are many rooms with specific storage capacity multiple user want store items at the sametime fetching & shorting which room has highest capacity then keep his items in that room then updates the rooms remaining capachity but during this fetching and shorting then updating another user can also get the data and there will me mismath in database so how to overcome this situation