limit the sql query before iterating through the objects
Merge pull request #3 from jdoconnor/limit

limit the sql query before iterating through the objects