fixed database migrations