@classmethod
def find_by_username(cls, username):
    """
        Class function that is called by a process and is looking for the user in the
        database based on the username, and if it finds it, it creates an object of this
        user and returns it
        """
    user = cls.query.filter_by(username=username).first()
    return user
