Fixed chartjs bugs and started building up the database queries for the dashboard. TRAD-8