Normal?

So I'm 24 weeks along and iv have some mucus come out when I went to the bathroom and it looked like parts of my mucus plug but I don't think it's time for it to be starting to come out. So I'm just worried cause my mother had my brother early so did my husband sister so could that effect me in any way? I don't want to have my baby to early but I'm excided at the same time. Could I be starting to lose my mucus plug and iv been have contraction like pains and very bad lower back pains could I be starting to get ready for labor soon???