removed setTimeout when spawn == 1
On going tests - db updates gone, requires refresh to commit changes to db - guess some que not working
Working version
Use len instead of length for now