Add a test when creating a rule if this rule already exists - handling exceptions

Changes in db.py and commons.py to add exception handling
Changes in Makefile to generate a tar with make tar and not a tar.gz (more convenient)

Make test OK.