def _update_frames(expected_settings):
    """
        Calculate proper frame range including handles set in DB.

        Harmony requires rendering from 1, so frame range is always moved
        to 1.
    Args:
        expected_settings (dict): pulled from DB

    Returns:
        modified expected_setting (dict)
    """
    frames_count = expected_settings["frameEnd"] - \
        expected_settings["frameStart"] + 1

    expected_settings["frameStart"] = 1.0 + expected_settings["handleStart"]
    expected_settings["frameEnd"] = \
        expected_settings["frameStart"] + frames_count - 1
    return expected_settings