add databae connection log and integer error