Fix session check

And now for good, I hope
Improved error handling for migrations
Migration for filevault_status
Wrap up in transaction