changed "localhost" to "127.0.0.1" to speed up db_connect