It seems that what you want is full customization. Wondering why you need mySQL connector or for that matter any DB connector. As Scott mentioned, you should use JCR/resource API and based on the result set, you can build charts, excel or anything you like