Adapt migrate db