reading limited record from db to export