test script for connectDB