fix postgres duration queries to return expected integer type