Database update and delete now uses mysqli prepared statements to increase security.
Insert and Update now uses prepered statements too. A smarter function for making the statements, and removal of old xss_clean.