changed mysql connection from controller to localhost