You need to custom adapter in listview, and in adapter layout, put checkbox to implement favorites.
Change your checkbox image to favorite image, and set oncheckedchangelistener to set your database.
This is a tutorial for simple multiple selection checkboxes listview.