Changed mysql week mode to be compliant with the cweek method.