Just realized that Dynamic_Query was using an inconsistent mix of Drupal and Ground db functions, so moved the rest of it to Ground style.