Add MySQL year and month functions.