Your trying to get the old value before insert here? this seems like a method that could be very unreliable as the query could hit another node and not include the increment so you decrement again?