Select queries don't need commits
Add offset to lq, so you can keep on scrolling
Always close the database cursor, don't return when no results