fix upcase method on before filter so rake.db works