How to perform a mail merge using data from custom tables