my$years_st=$db->prepare("select distinct substr(timestamp, 1, 4) from levels where stationid=?");
my$getdata_st=$db->prepare("select strftime('2000-%m-%dT%H:%M:%S.000Z', timestamp) as t, level from levels where stationid = ? and timestamp like ? || '-%'");