Database initialization.