Fix database initialization.