fix small bug
Attempt to speed up SQL insertion
Speed up triple loading