fetch segments from db, server