chart sql fixed..