Examples for  database usage in Java