added some security sanitizing of input to database

added some scrubbing and security checking of inserted address to decrease likelihood of security breach. still not a perfect solution.

Submitting this for a pull request to the main github to decrease likelihood of a new user not noticing security flaws.