updated database, to work with sqlite, and working on update