fix to issue #1

removed context manager for sqlite connection, since it was not exiting correctly and causing a bug on windows where the db file could not be deleted

(also removed unused pandas import, and made a few pep8 fixes)