AngularJS SQL Query Tool