added scripts for password reset and little refactoring done at db_interaction.php
#GT-978: added scripts for password reset