initial commit of the MySQL refactor