Simplify usage of prepare_aggregation_list() a bit
[sql] Correct extension name
[sql] Prepare the order list