Expect database config to be passed

This change makes it easier to package the backend as it can
be configured to use an existing database configuration,
possibly installed by the model library or some other package.
Merge branch 'master' into xmpp