title: Problems with object index
body: <p>I have a firebase database that users can upload entries too. Let's say that the user uploads three entries and then deletes the middle entry before the object index was 0 1 2 but now it's
  0 2 which causes my code to crash. Does anybody know how to refactor a object with an index of 0 2 to something like 0 1 so my code doesn't crash.</p>