add schema to query