message id added
Sending to database added
bug fix