improve sql-wal