Delete photo on server when database is altered