add apply & offline_message table