adapt dao to Joomla 3 API
refactoring for cron tests
change db name
convert test data to Joomla 3 db
refactoring

moved dailyStats table name to base class
improve comment
adapt to Joomla 3 lib