made ejs template work, and figure out how to use to_char(sdate, 'yyyy-mm-dd') as sdate usage