cleanup underway, IDTODBLogic gone!

updating and adding to sqlite works, deleting not tested yet