-changed SQL system to Prepared Statements
-fixes