create contactquery object