#23 + refactor move pi6 php functions to db + move pi6 js fonction to utils.js...
#23 + refactor move pi6 php functions to db + move pi6 js fonction to utils.js + externalize email function in preparation of resend email
#23 + refactor move pi6 php functions to db + move pi6 js fonction to utils.js + externalize email function in preparation of resend email