extracted code to setup the DB for trigger test as setupTestTriggerDB() to use it from other functions.