removed sqlite context manager due to windows bug

also removed unused pandas import, and made a few pep8 fixes