Dev. checkpoint: Started: Extracing array travels logic from sql logic.