Doing database stuff with java.