Php, Slim, angularJS & MySql