Fixed db return bug.
Fixed borked jquery for edit display and added proper edit submit and clearing of input values.