updated migration to support postgres