Item #98 - Add support for postgresql

This is just a fix to the migration script so that it would run on postgresql as well.