Added optional disposing of the database instance with the repository's.
Added optional disposing of the database instance with the repository's.

89sos98/LiteDB,mbdavid/LiteDB,falahati/LiteDB,falahati/LiteDB,89sos98/LiteDB