Version based on the db (previously name 'test_ingestiondb.py)
Version reading from db )previous is obsolete)