refactor gdata_connect with PDO