updating scripts/compounds_fields.py and friends
updating scripts/compounds_fields.py: bug fix for db.IntegrityError