security update 

Security update with prepare statements, fixed broken links, etc.