I know just a little bit of python and that looks like it does what the description says. Maybe I wouldn't use subprocess but do it via the standard lib.
What should we be looking for in the code?
What should we be looking for in the code?
best to pass a list of arguments to subprocess rather than a string, and avoid shell=True
Same for SQL statements, single quotes in a query string should generate a warning to just use prepared statements instead :-)