Changed DB connection from localhost->127.0.0.1, otherwise socket file error on Mac with XAMPP