DBXL only maps the data that's in the form's main data source, but you can use qRules (in conjunction with DBXL) to either submit the secondary data to the DB using a separate doctype, or you can copy the data from the query into the main data source and then just use the DBXL mapping logic.
Patrick Halstead
Project Manager at Qdabra