fixed photo-id issue on dbInit & download