add SQL functionality, authors page, results page

raw sql is nice