[sql] add a bookmark column to the log tables