Ignore npm-debug.log
Only drop the temp table if it exists.
Major refactor - organization, support for _sort, _return.