database now accepts an offset to go with the limit for basic pagination.