test sql connections