add delete_all method
separate insert_and_save method into 2 methods