Fix database method migration