[relocator] Serialize visualization for postgres before inserting