Optimize import by avoiding SQL queries #2353

Since questionnaires cannot be re-loaded from database (but always
create new instance), that means we don't need to check database for
anything directly related to questionnaire, because it cannot exist.
Reorder extracted columns according to GIMS format #2359
Expose indexes for easier use with extract script #2359