database initialization is now slower, but more reliable.