fixing an issue with dirty flags being set on reads out of the database.

Resolves Issue #46