Added stats modules.
Added mysql-connector in pom.xml.
Other minor changes.