Fix bug: change table engine type to InnoDB (so that it better handles locking and transactions).