More refactoring to make code use more from the Jackrabbit configuration, but it will become a little harder to continue since we are overriding the database configuration. We might have to switch to proper datasource usage to make it easier to use configuration as is.