Improvements for SQLite table re-creation code
Documentation fix
Added method to alter a table's PK.
Use typecast to retrieve index name.