Improved db_pager::set_sql to use array as well as query string.