update DB to insert ref to image file in message table