Fix having "false" appear in medical text fields.

Closes #119
Allow test database marking to work with any db name ending in "test".