adds mysql++ package and database accessor function.

also rewrites the data analysis functions.
small change to TaInd::results()