updated sql example and added a new chart update example