Included the conversion code for changing an old smem database to the
new schema. Conversion is a single transaction and takes place
automatically, but with warnings. I don't know how well it will behave
if someone loads a corrupted database.