Added output to db update.
Fixed typo in db update code.
Merge branch 'test' into dev