Indexing database keys is a heavy process. Do not do it inside callbacks that are called a lot of times per second.
-- look up for database key named "test"-- returns the new table if database returned nillocal data = db.test or { }data.name ='Salvatore'data.project ='Spirthack Innovations LLC'events.shutdown:set(function()-- replace "test" key with the new value db.test = dataend)
key_name
any
Name of the key
value
any
Value the key should be set to. This can be anything that can be sanitized (no functions, userdata)