Update newsdata.py
Update newsdata.py

Now uses '.format()' instead of '%'.

I also refactored the connection to the database to improve reusability and standardize it.
GideonFlynn/Logs-analysis-FSND-Project