save new messages to the db