adds schema for queries