added assert for good db to dbmod:with-db