add db script work with tariff