deserialize server from query result