ALTER TABLE `lib_files` ADD `rating` int(11) NOT NULL default '0';
ALTER TABLE `lib_files` ADD `prosm` int(11) NOT NULL default '0';
ALTER TABLE `lib_files` ADD `k_loads` int(11) NOT NULL default '0';

CREATE TABLE `lib_komm` (
`id` int(11) NOT NULL auto_increment,
`id_user` int(11) NOT NULL,
`msg` varchar(1024) NOT NULL,
`time` int(11) NOT NULL,
`id_lib` int(11) NOT NULL,
PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `lib_user` (
`id_user` int(11) NOT NULL,
`id_lib` int(11) NOT NULL,
KEY `id_lib`  (`id_lib`, `id_user`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8; 