added end of rainbow query, beginnings of sparse matrix and ratings story info queries, minor changes to other queries