Added two queries to routes