should make this shared with any other mysql checks.