restoring messages from db works for messages that are retrieved from the same db the process was running on