Fixes #14: migration not working for postgres

Fixes #14 migration not working for postgres