limit the sql query before iterating through the objects

@darbyfrey
We should version bump this as soon as ready