remove test print code
Add backup function

- /backup/<filename>
- prepare to restore with web UI
Fix SQL (group by statement) : all keywords are displayed in index page.

* fix to show revision properly
fix index query - display maximun revision
Add restore function

- /restore/<filename>
> w/restore/backup --> restore db from 'backup.dat'

- add flash messge into template