Fixed database initialization.