Different way of loading db file.

Performing more efficient inserts to prevent memory limit. Added orderby
param for NGC controller.