Fixed NPE when loading custom database types

Reason was that the configuration files were initialised after the
database registration was done. However, it needs to be present before that.

Configuration files are now initialised statically.