added check_mysql()