Check database connection
