2 in 1: ";" after "create table" and proper escape

1. Sorry, forgot to ";" in CREATE TABLE routine.
2. Replaced addslashes with mysql_real_escape_string (http://php.net/manual/en/function.mysql-real-escape-string.php)