connecting to database testing