Move some boilerplate code from the MySQL component
Minor update