Generate all stuff we need for our first query.