update migrations to work with postgresql (close #37)