able to delete from database and adjust tableview to settings