creating the urd framework

heavily borrowed from mapquery only with two maps instead of one