Updated Models

Updated models to
1. Change to a MySQLDatabase
2. Define indexes