Prevented SQL injections in function addPersonToDB.