[feature/migrations] Fix issues in data script and unserialize data

B3P-101