Editing in postgresql