Testing URL-based DB queries