Basic storage of stored queries