Recalculate limitstart state to make sure it doens't over total records
Make sure limitstart doesn't over total number of records