Make Object Oriented

Created a main.py and refactored the mysql import into a class