quick&dirty database migration

Will migrate old database, but will require sqlite3 module to be installed.