Prevented SQL injection in function addLinkToDB.