Add new db field for test mode. Fixes #7