In order to accomplish a deeper analysis, you should configure the audit log. Several DB engines have the capability to output different kinds of actions, queries and user activity to an audit log via either plugins or embedded features, this audit log can track statements like SELECT, INSERT, UPDATE, DELETE, DROP, CREATE among others. For example, the
Percona audit log plugin can generate audit logs for several SQL statements and user connection/disconnection.
In summary, Wazuh can be able to collect the DB audit logs and generate the proper alerts.
Please, let me know if it helps.