test script for SAMPLE database