code: def namedb_get_version(con):
      
      sql = 'SELECT version FROM db_version;'
      args = ()
  
      try:
          rowdata = namedb_query_execute(con, sql, args, abort=False)
          row = rowdata.fetchone()
          return row['version']
      except:
          # no version defined
          return '0.0.0.0'
docs: Get the db version