in aerogear-controller-demo we do use the H2 database which might help as an example. If you are only after an example of a database application and not specifically require AeroGear Controller, then I'm sure you can find a lot of JEE examples of this.
This one might be of interest, though I've not read it myself:
till i didn't understand, what exactly do????