accessing DBs from Java, prepared statements