Node Angularjs Partial SQL