Configuration:

If 'f' key specified, it will create database and table, if it doesn`t exists
if SECTOR = '', it will update data in key without sector

Usage:

Nothing::call_module('db', array('UPDATE', DB_NAME, TABLE_NAME, SECTOR, KEY, NEW_VALUE, [f]));

Click on code to copy it