Should we put this in another file? MysqlTransaction is already about 1k lines.