Stage 1 done just before DB insertion
Stage 1 done just before DB insertion