Restore db state for objects taken from cache