Checkpoint for updating the code to work with MySQL

Need to resolve the upsert/insert wave summary call