Added delete method and fixed a bug when saving records
Incrementing version