probably useful to actually have a query to run - note that tables/columns currently hard coded to defaults, which should be replaced with the configurable mappings
possibly just a temporary hack to fall back to username parameter name when user_name not present (there's some inconsistency in how other modules out there name things)