Adding a unique constraint to the armessage field.

fixes #467