scdb_add_mat - add amatrix to the DB - will save it and cache

scdb_add_mat(id, mat)

Arguments

id

- matrix id. Will return null if does not exist

mat

- matrix object