Fixing issue in db.rb#close

See issue https://github.com/propublica/daybreak/issues/28

This does not contain any tests yet.