fixing issues with database migration
Merge pull request #388 from vishwasbabu/develop

fixing issues with database migration