Working toMysql and attachLeftsAndRights