Added feature to relate bugs if Message-ID is already present in
the database.
This also fixes an error in which the UNIQUE constraint in the
msgids table causing an Application Error