make sure the guid fits in the database field