If that doesn't work, maybe it would help if you post a few sample records from your database and describe what you want the returned data to look like.