Refactor driver handling in prep for other mysql drivers