some minor safety checks for sharing DB and MSG