Corrected namespace typo
Corrected error in insert
input now html escaped for xss protection
fixed update issue