updated database unittests