Made conditional statements a bit more pythonic. Fixed the docstring for run_sql_query.