Added database type patcher with test