old_contents: # start the service
  databaseconnector = Runtime.start("databaseconnector","DatabaseConnector")
new_contents: database = Runtime.start("database","DatabaseConnector")
  database.setDriver("com.mysql.jdbc.Driver")
  database.connectionString="jdbc:mysql://localhost/sakila"
  database.jdbcUser="user"
  database.jdbcPassword="password"
  
  # crawlers publish documents
  def onDocument(doc):
      print(doc)
  
  database.addListener("publishDocument","python","onDocument")
  
  database.setIdField("actor_id")
  database.setSql("select actor_id, first_name, last_name from actor")
  
  # start crawling
  database.startCrawling()
  
  sleep(5)
  
  database.stopCrawling()
  
subject: Update DatabaseConnector.py