Add queries for getting objects.