EMX / MysqlRepository fixes

I think that it is more readable with parentheses