Replacing localhost with 127.0.0.1

Speed up database connection.