11th commit

Move a lot of codes from MainActivity to EditActivity(including Button
Add and all the DB operation)
Problem: when reset the adapter of ListView, the number of checked items
is abnormal