database method fixes.