Update SQL to match current db
Move validation of args to build_sql
Add support for JSONP via callback parameter