Clean up a bit.  Use normal queries, rather than seek.
Batch inserts.  Much faster!