remove general function; send month type to db field