Page is in Russian, but the link to the source files and binaries for linu and windows is easily visible.
http://www.livejournal.com/users/kiltum/857755.html
I just easily converted 4.7k sms messages to the text file on Windows.
Just run
sms2csv "Messages_Database.pdb" > messages.csv