Sqlite migration

migrated to SQLite (finally)