Hey there are various options like you can use GWT or EXT GWT.
Check out this link:
http://www.sencha.com/examples/explorer.html#roweditortreegrid i hope you will find something on this. Only thing you have to write on the database thing on the save button listener of editor tree grid..