combinging database with rules to get around PATH issues