demo using postgres with java