This was a performance optimization that shouldn't be needed with the new SQL history backend. This also removes support for the LIMIT feature from SqlTable as it only existed to support web-history-max-items.