an example program of how to work with java databases