fixes pdo-sqlite, added more debug data to rules