TEst database connection