Created SQL query for horizontal bars for goals.

Requires some massaging of data at the application level, but its not
too bad. Need to create the actual visuals of the goals.