I already had this theory on my mind. There are cases in which prostatitis can influence libido and erection quality, so there is a connection.
When I was on antibiotics (penicilin) I was completly cured during the treatment, and it came to my mind that there was some inflammation on my prostate or something.