Updated sql for collection_order table.