Fixed migration script for sqlite databases

"os_version" was missing in downgrade function. The index creation was not necessary and not functional, probably copied from other migration scripts.