DB connection check java application