Fix bug on insert (echo doesn't do the job). Also fix updating values
with objects.