code: def get_app_data(app_id):
      
      try:
          conn = get_conn()
          c = conn.cursor()
          c.execute("SELECT id,name,app_data FROM app WHERE id='{0}' ".format(app_id))
          result = c.fetchone()
          conn.close()
  
          if result:
              appname = result[1]
              app_data = utils.str2dict( base64.b64decode(result[2]) )
  
              return (appname,app_data)
          else:
              return (None,None)
  
      except Exception,e:
          raise RuntimeError('get app data failed! %s' % e)
docs: get app data ( include name and app_data )