added flag to set trigger db name and test script