[#116]Clear entire database and photo cache when switching server to
ensure consistency.