Update class.R

This change will fix issue #4 and http://stackoverflow.com/q/21603660/2161065.
Merge pull request #7 from Starfox899/master

close statement on exit in `dbSendUpdate` when using prepared statements.