DB stuff and bug fixes

1. add create an item, update an item
2. dismiss modal when update progress complete
3. for each update/create, create a event associated with it