Pattern add fix for DB