orm fix, def a string in model but use int in db may cause nil pointer error