Add unbuffered PDO queries in order to optimize the memory usage