Edited parametized queries.
Fixed security issues. Fixed upload photo. Fixed close on click outside on gallery.