SQL error and a larger tree space