Some Code Formatting and wraping
Migrate to MySQLiDBHelper Class
Redirect to HomePage if Invalid Session