bug fix in sqlite driver
fix bug in factory
Add skeleton for new text UI