database value transnformation fix