cleaning up sqlite interval series