Added patch to avoid PDO exceptions when creating storage instances