Revert "core/db: Don't set limit on SQL queries."
Revert "core/db: Don't set limit on SQL queries."

This reverts commit 02ca40ea0b83b2b7d50b60578e2d34522295f3d0.

The database has been recreated and no longer has the limit issue.

jrupac/goliath,jrupac/goliath,jrupac/goliath,jrupac/goliath,jrupac/goliath