The above source code prepares the database with CARDINALITY(1000) number of tuples based on the flag PREPARE_DB. It inserts CARDINALITY number of random integer samples into the database. If everything goes will, you should see the printf statement "Ready to process Queries" in your mote output like below.
 
The above source code prepares the database with CARDINALITY(1000) number of tuples based on the flag PREPARE_DB. It inserts CARDINALITY number of random integer samples into the database. If everything goes will, you should see the printf statement "Ready to process Queries" in your mote output like below.
   Exception encountered, of type "Error"