Close stmt after use. Add some javadoc