Added queries to repository