Add DB to the anaytics program
Add the main analytics program
Get row counts
Added idea's on making the whole thing faster.