Add queries to the activity