Restore db state for objects taken from cache
Merge pull request #958 from daevaorn/restore-instance-db-state

Restore db state for objects taken from cache