convert all values to his database value