Fix MysqlRepositoryCollection security leaks