database statistics with google chart api