Separated mysql checks