remove note and photos from db