database test script