rudimentary implementation for SAStorage_Query
defined the schema a bit more