Generalized a case for transaction

Mnesia transaction can return '{aborted, Reason}' and the reason is not necessary entry being not found.
Merge pull request #5 from akalenuk/master

Generalized a case for transaction