Introduce PageDao interface. Move file scanning logic to FilePageDao.