Database: unit test now exits with non-zero on error (woo)

Thanks to @johnelse for pointing this out.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>