make the SQL upgrade actually work

discovered that ALTER TABLE in SQLite is quite limited. using the
recommended way to do so: rename the old table, create one with
the new schema, copy the data from the old one to the new one

also, fixed the package name