---
title: Create or update database tables
canonical: https://wpsecurityninja.com/docs/installation-and-usage/create-or-update-database-tables/
---
Pro stores events, scheduled scans, firewall data, and related records in custom database tables. Those tables are normally created or updated on install or upgrade. They are dropped when you **delete** the plugin, or when you deactivate with **Remove settings when deactivating** turned on. See [Remove settings when deactivating](https://wpsecurityninja.com/docs/installation-and-usage/remove-settings-when-deactivating/).

If tables are missing or out of date:

1. Go to **Security Ninja → Tools**.
2. Click **Update Database**.
3. Wait for the process to finish, then reload the feature that was failing (Events, Firewall, Scheduled Scanner, and so on).

![Security Ninja Tools page](https://wpsecurityninja.com/media/2019/07/security-ninja-tools-page.webp)

![Update Database button on Tools](https://wpsecurityninja.com/media/2019/07/where-to-find-update-database-button.webp)
