added curl examples and fixed some return statements to return a json error when the mysql query execute fails
added curl examples and fixed some return statements to return a json error when the mysql query execute fails

DevMoore94/FlaskBlog,DevMoore94/FlaskBlog