changed recovery_enabled and migration_status columns to integer and fix tests