UK: add sql timing middle ware