get_last_insert_id(): safer default to 0
add cumulative chart