getMessageById rewrite
insertMessages() rewrite