FIXME: next prev logic in dao