server: remove server query function