fix delete method, transaction commit