delete unused id.
refactoring summary date page. (use GROUP BY)