retrieveCheckins() function which returns user checkins from a list of user actions