Added response.end()
Merge branch 'mongodb'