start of methods for inserting into message tables