AST DB Update

Hi,

I need to create a script to do some changes on the FreePBX Mysql tables, but I’m wondering how I can also update the ASTDB?
I’ve seen that the ASTDB is not consistent with the cofiguration so I’m wondering how I can build up a new ASTDB file.

Thanks!