Fixup a few MW related issues

- Prefixes and table options to mysql tables
- Undefined variable
- Documenation

Change-Id: Ic62569319e385dcb4b319f75d4bc632e835bd6c5