Changed the main.js file to be dynamic. 

It now will read app_device table and insert rows into the smart truck incident table dynamically. No hard coding required.