Rewrited a couple of SQL queries to avoid SQL-injections
Fixed a couple of errors in the CREATE TABLE stataments in DB.java