Add SQL support

parse ANSI SQL into optimised TrollDB queries on the fly