adjusting server interaction with executing query