Code Refactoring

Enhance the reusability of code, and adds security to the database
information.
Merge branch 'master' of https://github.com/zekewang918/QuitSmoking

Conflicts:
	index.php
	welcome.php