Tweak MySQL MONTH and DAY implementations