further dev

update the todo, include dblclick to edit todo, use local database