Fixed issue with DbResourceReference.putStream which tried to pass an
  InputStream to the JDBC driver, which isn't likely to be handled; now
  reads from the stream to a byte[] and wraps in a SerialBlob
Changed to use dbresource:// instead of content:// so that it can be used without a content repo in place, ie put content in the DB