deleteing cards and photos from the db.