get the last ten records from table activities