moved opsworks and mysql to inside of try catch incase there are errors
added condition around mysql connection in request, if no connection then just output "hello world"