Start of sql interface for querying over http