Fixed several bugs

Bugs Found: Editing markers produces a duplicate marker in database,
Editing a photo is not working