db: save function pointers saved in arrays of structs