fixed bugs and typos, reverted varchar(1000) to varchar(255), those are limited to 1000/767(myisam/innodb) bytes, not characters