Modified getConnection() to always use 127.0.0.1 instead of 'localhost' to fix a bug with loggin in