Modified the get_last_checkin function to only return a checkin if it is a new checkin