moving to sqlite database