Refactor the API controllers to use dbdDB::datez() for proper JS dates, and the start of the charts page