support {{today}} replacement in SQL

* {{today}} => yyyy/MM/dd