got it ready to go into sqlite but debugging some input errors
merging
got it working, on to more debugging