Create avatarquery.php

changed lots of things