OnLoad function called onReload needs to call db data and populate dom elements
GenerateNewData needs to call mapPattern. mapPattern returns an object which references a new data set. The new dataset needs to be sent to the db first so that OnLoad function onReload calls the new dataset and populates with most recent data