oops, add the if for checking time and value column names as well(though who does a relational table with just a pk and a value anyways so it probably didn't matter)