Complete save and delete database actions