refactored get_last methods on user and pairsession model to use the argument passed in