Added support for an empty database in the unit tests