get latest migration from database