Mtk message parsing functionality and database operations