One last fix, plus starting on db adapter for sqllite
beginings of a db adapter