Adding database adapter for rules.