up to version 1.8
fix database field type convertion