fix dependencies

Forgot to require underscore when you factored out the sql stuff. Need to get test passing.