Drying code of methods add, delete , update