migrate inventory to sqlite