Using MySql cursors in the etl scenario