First running sample, retrieving program definitions from the database and
running the programs