Fixed migration script for sqlite databases
Merge pull request #176 from wycomco/wip

Fixed migration script for sqlite databases