write into innodb, change db type later