do some variable convert to match the database