reformatting and begin using the sqlmap restful api instead of calling directly