basic sql writes / reads with flask