Port memxml2db.pl to Rake task

Fixes #269.