batch insert for messages