improved sqls