Add SQL similarity tracking (#323)
Uses a suffix tree (currently a simple implementation; Ukkonen's algorithm would be better) and gapped string comparison to find SQL queries which are similar to others which have already been made for this request.