message: Parse datasource_id as integer on the server side
  Datasource ids are being serialized into strings on the client side and python's default json.load doesn't deserialize strings representing integers as integers. Adding an integer parsing step when initializing QueryContext.
diff: @@ -19,7 +19,7 @@ class QueryContext:
  queries: List[Dict],
  ):
  self.datasource = ConnectorRegistry.get_datasource(datasource.get('type'),
  - datasource.get('id'),
  + int(datasource.get('id')),
  db.session)
  self.queries = list(map(lambda query_obj: QueryObject(**query_obj), queries))
  