Test database method.