Refactor to use MySQL instead of Derby