Added index support for MySQL

- Added index support for MySQL
- Removed wasteful indexing from the 'value' column
this comment, belong in the commit message not the code