Add additional database tests.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>