JDBC storage fixes after PostgreSQL9 test

Additionally, CRLFOutputStream from GNU Classpath is removed.
We'll use com.sun.mail.util.CRLFOutputStream instead which is already in
the dependencies.