remove unused variable from mysql check