added timestamp support to sql