Convert tables to innodb to use locking and transactions

GH-17