Charts from DB data v1

- Small bug fixed: each four registers, date and time for four
consecutive rows are repeated.