fix database field