David started the game at outside centre before switching to the wing, but he was unable to help his team maintain their place at the top of the table.
Hawks ran out 35-16 winners with tries from Glasgow back-up squad members, Wes Henry (2) and Stevie Swindall as they maintained their 100% record to go top of the Premiership above previously unbeaten Aberdeen.
Glasgow prop Andy Kelly made an appearance for Ayr against Watsonians.
It was difficult to find any positives from Scotland's humiliating 51-9 defeat to France in Sydney today but the play of Glasgow's Cammy Mather at least justified his call-up as he showed more energy and ability than most of his teammates.
Jim Telfer praised the contribution the Glasgow captain made at openside flanker, citing three turnovers that Cammy snaffled as an indication of the impact made to the Scots' cause, three years after his last appearance at international level. That ability to turnover possession should see Cammy keep his place for next week's all or nothing game with Fiji.