Hi,
Welcome to ehealthforum.
Given the symptoms (blood spots on toilet paper, sting when passing urine) you probably have a urine infection or urinary bladder infection (called as Cystitis).
A Urine routine analysis along with a culture sensitivity test would help you to identify what infection it could be. Since there is family history of diabetes (you are prone to get it, and should get tested for it), the possibility of frequent UTI cannot be ruled out.
You have to report to your healthcare provider to get a thorough examination and the above said urine and blood tests done.
Do not delay your visit to your healthcare provider.
Take care.