moved db to innodb, removed redundant operations