Troubleshooting slow cur.execute()
Before fixing correlation.py to eliminate autin joins
correlation.py works relatively fast now
correlation plotting works