Interesting idea!
First off I would like to point out the built-in
database cleanup options. One of the options will set assets to non-active if they have been disabled in AD.
If you are talking about custom states or states based on OU. This is technically possible.
You could create a deployment which runs a database script on your lansweeper database. This script changes the states of all the assets which have a specific OU. This link should help you with the commands for how to run the SQL script: https://docs.microsoft.com/en-us/sql/relational-databases/scripting/sqlcmd-run-transact-sql-script-files?view=sql-server-2017
However, you could do this easier by scheduling a job in SSMS to run the script daily. Kinda like it is mentioned here: https://stackoverflow.com/questions/5471080/how-to-schedule-a-job-for-sql-query-to-run-daily