The update_names() will have to be updated to take a possible alias name as well. That needs to be tracked inside QcSqliteInfo, so that when there is a statement like "select t2.a from t1 t2" we report the field as t1.a and not as t2.a.