Calling sql.init() in version.version() would replace the existing sql connection and cause a crash when accessed by opening qute://version. Now version relies on sql already being initted, and app.py inits sql early if the --version arg is given.