In general doing direct database actions like this are not a good idea. If you were to do direct database inserts you would at least need to reboot Mango after to get all the changes loaded into Memory.

The right way to do this is through our RESTful API. The feature isn't available right now but this is something we could add for you in the near future. You can contact us at support@infiniteautomation.com for more details.