Update function. TODO: pass ID to edit jsp.