further analysis of predictions.
removed some unnecessary javascript from example
a tweak to prevent mysql connection timeout, and making new sessions within db requests made by the web page.