Added compaction after import
fixed compaction

added headers to compaction post
Slowed down addition of new records to prevent crash

added 10 ms delay on all additions to database preventing crash.
Removed automatic compaction