Added die when 0 records are returned