Added debugging to generic query; fixed server address.