first cut at db upgrade script to fix negative session duration data + null in meta.d-ranges + undefined in *.ds