change the logic of password_reset's database insert