fixed db and updated the ids in the message.