Hans Leidekker : msi: Move database initialization to a separate function.