improve sql-wall