Continue coding madlib.summary free function

The only left work: create query string and execute and format the
results.