def METHOD_NAME(db_context, username, crypted_password):
    """
    create the initial admin user with his password if it does not exists
    - called during server start
    :param db_context: object to provide the database engine and connection
    :param username: the name of the admin user
    :param crypted_password: the lib crypt encrypted password
    :return: - nothing -
    """
    try:
        admin_users = SetPasswordHandler.AdminUser.query.filter_by(
            username=username
        ).all()
        if len(admin_users) > 0:
            log.info("admin user %r already exist - user not updated!")
            return
        admin_user = SetPasswordHandler.AdminUser(
            userid=username,
            username=username,
            groupid="admin",
            givenname="created by setPassword",
            password=crypted_password,
        )
        db.session.add(admin_user)
        db.session.commit()
    except Exception as exx:
        log.error(exx)
        db.session.rollback()