add transaction IN tables and modified indexes and fK for message tables