Ethan's Volatility Predictor - first push

You're calling the getConn function multiple times which means you're connecting to the databse multiple times. Don't. You should only connect to the database once and then use cursors to fetch data.