fix a problem about database

fix a problem that the item of database table is not delete when the
user delete an grid item view.