Changed autoupdate to work with sqlite.

Transitions are always done by renaming the table, creating the new table with current schema moving, moving the data to the new table and then droping the old table.