test database connection
connect database