add pdo session table, errmode exception