Get earilest session by created_at timestamp

def where_earliest(cls, user_id):
        """ Get earilest session by created_at timestamp """
        return cls.query.filter_by(user_id=user_id)\
            .order_by(cls.created_at.asc()).first()