Changed the database connection to use the with statement.
Merge pull request #1 from jackboot7/master

Changed the database connection to use the with statement.