ajax.php update the plugin to create tables before trying to SELECT from them