Fixed pug in nodejs code that made database hang when certain requests were made
Cleanup code