page through results pages + sql repo