increase execution time limit; switch to cURL; check for existing number of rows to define offset