saving via saveButton and added db operations logging