Removed the duplicate code for adding bug relationship

Removed the code for adding bug relationship in the add_msg_id method. Cleaned up the code for checking the message-id in the database table. Fixed the white spaces in if and function definitions.