insert into TOBSDATALOG(siteid,rmkenable,ftimestamp,fdate,fdatetime)
select $siteid$,0,$ftimestamp$,$fdate$,$fdatetime$
where not exists(select *from TOBSDATALOG where siteid=$siteid$ and ftimestamp=$ftimestamp$ )

update TOBSDATALOG set fuploadbytes=$fuploadbytes$ where siteid=$siteid$ and ftimestamp=$ftimestamp$