update PDO connection and query execution