export by every 1000 items

Referred Yves-Alexis Perez <corsac@corsac.net>'s patch for
MeegoSMSBackupRestore