fix bug in dao and add example report to csv script